package com.ruoyi.rpt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 报表数据源对象 rpt_datasource
 * 
 * @author ruoyi
 */
public class RptDatasource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据源ID */
    private Long dsId;

    /** 数据源名称 */
    @Excel(name = "数据源名称")
    private String dsName;

    /** 数据源类型（mysql,oracle,postgresql等） */
    @Excel(name = "数据源类型")
    private String dsType;

    /** 连接URL */
    @Excel(name = "连接URL")
    private String dsUrl;

    /** 用户名 */
    @Excel(name = "用户名")
    private String dsUsername;

    /** 密码 */
    private String dsPassword;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String dsStatus;

    public void setDsId(Long dsId) 
    {
        this.dsId = dsId;
    }

    public Long getDsId() 
    {
        return dsId;
    }

    public void setDsName(String dsName) 
    {
        this.dsName = dsName;
    }

    public String getDsName() 
    {
        return dsName;
    }

    public void setDsType(String dsType) 
    {
        this.dsType = dsType;
    }

    public String getDsType() 
    {
        return dsType;
    }

    public void setDsUrl(String dsUrl) 
    {
        this.dsUrl = dsUrl;
    }

    public String getDsUrl() 
    {
        return dsUrl;
    }

    public void setDsUsername(String dsUsername) 
    {
        this.dsUsername = dsUsername;
    }

    public String getDsUsername() 
    {
        return dsUsername;
    }

    public void setDsPassword(String dsPassword) 
    {
        this.dsPassword = dsPassword;
    }

    public String getDsPassword() 
    {
        return dsPassword;
    }

    public void setDsStatus(String dsStatus) 
    {
        this.dsStatus = dsStatus;
    }

    public String getDsStatus() 
    {
        return dsStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dsId", getDsId())
            .append("dsName", getDsName())
            .append("dsType", getDsType())
            .append("dsUrl", getDsUrl())
            .append("dsUsername", getDsUsername())
            .append("dsPassword", getDsPassword())
            .append("dsStatus", getDsStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 